package com.yichat.micro.msghttpservice.client.config;

import com.weibo.api.motan.config.springsupport.BasicRefererConfigBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by chenmohan on 2019/04/15
 *
 * @description
 */
@PropertySource("classpath:config/motan.properties")
@Configuration
public class MsgHttpServiceClientMotanConfig {

    /**
     * 客户端配置
     *
     * @return BasicRefererConfigBean
     */
    @Bean(name = "msgHttpServiceBasicRefererConfigBean")
    @ConfigurationProperties(prefix = "motan.client")
    public BasicRefererConfigBean baseRefererConfig() {
        BasicRefererConfigBean config = new BasicRefererConfigBean();
        return config;
    }

}
